﻿<div ng-controller="UE.DistrictController">

    <select ng-model="province" ng-change="changeProvince();">
        <option ng-repeat="provinceItem in provinces" ng-selected="provinceItem.Code == province" value="{{provinceItem.Code}}">{{provinceItem.Name}}</option>
    </select>

    <select ng-model="city" ng-change="changeCity();">
        <option ng-repeat="cityItem in citys" ng-selected="cityItem.Code == city" value="{{cityItem.Code}}">{{cityItem.Name}}</option>
    </select>

    <select ng-model="district" ng-change="changeDistrict();" ng-show="model.config.threetier">
        <option ng-repeat="districtItem in districts" ng-selected="districtItem.Code == district" value="{{districtItem.Code}}">{{districtItem.Name}}</option>
    </select>

    <div style="display:none;">{{model.value}}</div>
</div>